<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>MTCDElggPlugin: /home/nicola/public_html/elgg/mod/mtcd/start.php File Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">MTCDElggPlugin
   &#160;<span id="projectnumber">0.1</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('start_8php.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">/home/nicola/public_html/elgg/mod/mtcd/start.php File Reference</div>  </div>
</div>
<div class="contents">

<p><a href="start_8php_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="start_8php.html#a38a02770385e327c214db25b2576e942">write_log</a> ($text)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Write a row in the log file.  <a href="#a38a02770385e327c214db25b2576e942"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="start_8php.html#aac1033f7c06f63040b83896b27fe9953">get_synonyms</a> ($word)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get a list of synonyms of a word.  <a href="#aac1033f7c06f63040b83896b27fe9953"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="start_8php.html#a45cc67920b1dbed4fc1c415c2eed2b7c">get_hypernyms</a> ($word)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get a list of hypernyms of a word.  <a href="#a45cc67920b1dbed4fc1c415c2eed2b7c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="start_8php.html#a8ecd5468592524b985e40212f90033be">get_dictionary</a> ($metaname, $type)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a dictionary of words associated with other words which are related in some way.  <a href="#a8ecd5468592524b985e40212f90033be"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="start_8php.html#a93b8cbed2051023102fba978a0b21cb4">generate_dataset</a> ($synonyms, $hypernyms, $type, $subtypes=ELGG_ENTITIES_NO_VALUE)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get and filter data from Elgg database to produce a dataset for the clustering procedure.  <a href="#a93b8cbed2051023102fba978a0b21cb4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="start_8php.html#a93c2285ae79637e22148d06aa2309ff5">write_arff</a> ($relation, $attributes, $data)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Formatting a dataset and write it in an ARFF file.  <a href="#a93c2285ae79637e22148d06aa2309ff5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="start_8php.html#a0ca6c057aa7e778ab38cb43a3d303e88">get_clusters</a> ($relation, $number_of_cluster)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Use simple k-means to obtain omogeneous clusters of entities.  <a href="#a0ca6c057aa7e778ab38cb43a3d303e88"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="start_8php.html#a5067bb4596a4ba71e3b8928ad397da4f">delete_clusters</a> ($type)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Delete all clusters of a given type.  <a href="#a5067bb4596a4ba71e3b8928ad397da4f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="start_8php.html#a1020a828d0972a4160fc08b3e4449c21">save_clusters</a> ($clusters, $type)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Save all clusters and create the relationships between the clusters and the contained entities.  <a href="#a1020a828d0972a4160fc08b3e4449c21"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="start_8php.html#af0a9e4c0b261bdb62061e92d560c6527">init_clustering</a> ($type, $subtype=ELGG_ENTITIES_NO_VALUE)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Iteratively performs the clustering process by changing the K value until the clusters cardinality isn't less than the maximum allowed.  <a href="#af0a9e4c0b261bdb62061e92d560c6527"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="start_8php.html#aef09c9045ec39ea9a5f18b5cbe591f0f">clustering</a> ($hook, $entity_type, $returnvalue, $params)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Clustering procedure.  <a href="#aef09c9045ec39ea9a5f18b5cbe591f0f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="start_8php.html#a7bfc65d6aa3127339eb85ca3d32cc8cf">recommender_init</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Inizialize the plugin.  <a href="#a7bfc65d6aa3127339eb85ca3d32cc8cf"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="start_8php.html#a0dbe133b336a7efc917aef0204753e44">deactivation</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Remove all clusters and the subtype cluster.  <a href="#a0dbe133b336a7efc917aef0204753e44"></a><br/></td></tr>
</table>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="aef09c9045ec39ea9a5f18b5cbe591f0f"></a><!-- doxytag: member="start.php::clustering" ref="aef09c9045ec39ea9a5f18b5cbe591f0f" args="($hook, $entity_type, $returnvalue, $params)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">clustering </td>
          <td>(</td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>hook</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>entity_type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>returnvalue</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>params</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Clustering procedure. </p>
<p>Called by Cron once a week. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">$hook</td><td>Used by cron, how set by elgg core developer. </td></tr>
    <tr><td class="paramname">$entity_type</td><td>Used by cron, how set by elgg core developer. </td></tr>
    <tr><td class="paramname">$returnvalue</td><td>Used by cron, how set by elgg core developer. </td></tr>
    <tr><td class="paramname">$params</td><td>Used by cron, how set by elgg core developer. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="start_8php_source.html#l00351">351</a> of file <a class="el" href="start_8php_source.html">start.php</a>.</p>

<p>References <a class="el" href="start_8php_source.html#l00009">write_log()</a>, <a class="el" href="start_8php_source.html#l00094">get_dictionary()</a>, <a class="el" href="settings_8php_source.html#l00006">$plugin</a>, <a class="el" href="settings_8php_source.html#l00011">$settings</a>, <a class="el" href="start_8php_source.html#l00145">generate_dataset()</a>, and <a class="el" href="start_8php_source.html#l00309">init_clustering()</a>.</p>

</div>
</div>
<a class="anchor" id="a0dbe133b336a7efc917aef0204753e44"></a><!-- doxytag: member="start.php::deactivation" ref="a0dbe133b336a7efc917aef0204753e44" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">deactivation </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Remove all clusters and the subtype cluster. </p>
<p>Called when the plugin is deactiveted. </p>

<p>Definition at line <a class="el" href="start_8php_source.html#l00399">399</a> of file <a class="el" href="start_8php_source.html">start.php</a>.</p>

<p>References <a class="el" href="start_8php_source.html#l00269">delete_clusters()</a>.</p>

</div>
</div>
<a class="anchor" id="a5067bb4596a4ba71e3b8928ad397da4f"></a><!-- doxytag: member="start.php::delete_clusters" ref="a5067bb4596a4ba71e3b8928ad397da4f" args="($type)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">delete_clusters </td>
          <td>(</td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>type</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Delete all clusters of a given type. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">$type</td><td>Type of cluster to be deleted. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="start_8php_source.html#l00269">269</a> of file <a class="el" href="start_8php_source.html">start.php</a>.</p>

<p>Referenced by <a class="el" href="start_8php_source.html#l00282">save_clusters()</a>, and <a class="el" href="start_8php_source.html#l00399">deactivation()</a>.</p>

</div>
</div>
<a class="anchor" id="a93b8cbed2051023102fba978a0b21cb4"></a><!-- doxytag: member="start.php::generate_dataset" ref="a93b8cbed2051023102fba978a0b21cb4" args="($synonyms, $hypernyms, $type, $subtypes=ELGG_ENTITIES_NO_VALUE)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">generate_dataset </td>
          <td>(</td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>synonyms</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>hypernyms</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>subtypes</em> = <code>ELGG_ENTITIES_NO_VALUE</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get and filter data from Elgg database to produce a dataset for the clustering procedure. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">$synonyms</td><td>Dictionary of all synonyms found between descriptors. </td></tr>
    <tr><td class="paramname">$hypernyms</td><td>Dictionary of all hypernyms found between descriptors. </td></tr>
    <tr><td class="paramname">$type</td><td>Type of entity on which build dataset. </td></tr>
    <tr><td class="paramname">$subtypes</td><td>Subtypes of entity on which build dataset. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="start_8php_source.html#l00145">145</a> of file <a class="el" href="start_8php_source.html">start.php</a>.</p>

<p>References <a class="el" href="start_8php_source.html#l00193">write_arff()</a>.</p>

<p>Referenced by <a class="el" href="start_8php_source.html#l00351">clustering()</a>.</p>

</div>
</div>
<a class="anchor" id="a0ca6c057aa7e778ab38cb43a3d303e88"></a><!-- doxytag: member="start.php::get_clusters" ref="a0ca6c057aa7e778ab38cb43a3d303e88" args="($relation, $number_of_cluster)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">get_clusters </td>
          <td>(</td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>relation</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>number_of_cluster</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Use simple k-means to obtain omogeneous clusters of entities. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">$relation</td><td>Dataset relation to be clustered. </td></tr>
    <tr><td class="paramname">$number_of_cluster</td><td>Number of cluster that algorithm have to return. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>List of cluster. A cluster is a list of entity GIUDs. </dd></dl>

<p>Definition at line <a class="el" href="start_8php_source.html#l00223">223</a> of file <a class="el" href="start_8php_source.html">start.php</a>.</p>

<p>References <a class="el" href="settings_8php_source.html#l00006">$plugin</a>, <a class="el" href="settings_8php_source.html#l00011">$settings</a>, and <a class="el" href="start_8php_source.html#l00009">write_log()</a>.</p>

<p>Referenced by <a class="el" href="start_8php_source.html#l00309">init_clustering()</a>.</p>

</div>
</div>
<a class="anchor" id="a8ecd5468592524b985e40212f90033be"></a><!-- doxytag: member="start.php::get_dictionary" ref="a8ecd5468592524b985e40212f90033be" args="($metaname, $type)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">get_dictionary </td>
          <td>(</td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>metaname</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>type</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Create a dictionary of words associated with other words which are related in some way. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">$metaname</td><td>List of descriptors names between tags, interests or both. </td></tr>
    <tr><td class="paramname">$type</td><td>Type of dictionary between synonyms and hypernyms. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Dictionary of all synonyms or hypernyms found between descriptors. </dd></dl>

<p>Definition at line <a class="el" href="start_8php_source.html#l00094">94</a> of file <a class="el" href="start_8php_source.html">start.php</a>.</p>

<p>References <a class="el" href="start_8php_source.html#l00054">get_hypernyms()</a>, <a class="el" href="start_8php_source.html#l00022">get_synonyms()</a>, and <a class="el" href="start_8php_source.html#l00009">write_log()</a>.</p>

<p>Referenced by <a class="el" href="start_8php_source.html#l00351">clustering()</a>.</p>

</div>
</div>
<a class="anchor" id="a45cc67920b1dbed4fc1c415c2eed2b7c"></a><!-- doxytag: member="start.php::get_hypernyms" ref="a45cc67920b1dbed4fc1c415c2eed2b7c" args="($word)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">get_hypernyms </td>
          <td>(</td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>word</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get a list of hypernyms of a word. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">$word</td><td>The word to get hypernyms. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>List of word hypernyms. </dd></dl>

<p>Definition at line <a class="el" href="start_8php_source.html#l00054">54</a> of file <a class="el" href="start_8php_source.html">start.php</a>.</p>

<p>References <a class="el" href="settings_8php_source.html#l00006">$plugin</a>.</p>

<p>Referenced by <a class="el" href="start_8php_source.html#l00094">get_dictionary()</a>.</p>

</div>
</div>
<a class="anchor" id="aac1033f7c06f63040b83896b27fe9953"></a><!-- doxytag: member="start.php::get_synonyms" ref="aac1033f7c06f63040b83896b27fe9953" args="($word)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">get_synonyms </td>
          <td>(</td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>word</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get a list of synonyms of a word. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">$word</td><td>The word to get synonyms. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>List of word synonyms. </dd></dl>

<p>Definition at line <a class="el" href="start_8php_source.html#l00022">22</a> of file <a class="el" href="start_8php_source.html">start.php</a>.</p>

<p>References <a class="el" href="settings_8php_source.html#l00006">$plugin</a>.</p>

<p>Referenced by <a class="el" href="start_8php_source.html#l00094">get_dictionary()</a>.</p>

</div>
</div>
<a class="anchor" id="af0a9e4c0b261bdb62061e92d560c6527"></a><!-- doxytag: member="start.php::init_clustering" ref="af0a9e4c0b261bdb62061e92d560c6527" args="($type, $subtype=ELGG_ENTITIES_NO_VALUE)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">init_clustering </td>
          <td>(</td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>subtype</em> = <code>ELGG_ENTITIES_NO_VALUE</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Iteratively performs the clustering process by changing the K value until the clusters cardinality isn't less than the maximum allowed. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">$type</td><td>Type of entity on which performs the clustering process. </td></tr>
    <tr><td class="paramname">$subtype</td><td>Subtype of entity on which performs the clustering process. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="start_8php_source.html#l00309">309</a> of file <a class="el" href="start_8php_source.html">start.php</a>.</p>

<p>References <a class="el" href="start_8php_source.html#l00009">write_log()</a>, <a class="el" href="start_8php_source.html#l00223">get_clusters()</a>, and <a class="el" href="start_8php_source.html#l00282">save_clusters()</a>.</p>

<p>Referenced by <a class="el" href="start_8php_source.html#l00351">clustering()</a>.</p>

</div>
</div>
<a class="anchor" id="a7bfc65d6aa3127339eb85ca3d32cc8cf"></a><!-- doxytag: member="start.php::recommender_init" ref="a7bfc65d6aa3127339eb85ca3d32cc8cf" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">recommender_init </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Inizialize the plugin. </p>
<p>Called when the system is initialized. </p>

<p>Definition at line <a class="el" href="start_8php_source.html#l00390">390</a> of file <a class="el" href="start_8php_source.html">start.php</a>.</p>

</div>
</div>
<a class="anchor" id="a1020a828d0972a4160fc08b3e4449c21"></a><!-- doxytag: member="start.php::save_clusters" ref="a1020a828d0972a4160fc08b3e4449c21" args="($clusters, $type)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">save_clusters </td>
          <td>(</td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>clusters</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>type</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Save all clusters and create the relationships between the clusters and the contained entities. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">$clusters</td><td>List of clusters. A cluster is a list of entity GIUDs. </td></tr>
    <tr><td class="paramname">$type</td><td>The type of cluster. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="start_8php_source.html#l00282">282</a> of file <a class="el" href="start_8php_source.html">start.php</a>.</p>

<p>References <a class="el" href="start_8php_source.html#l00269">delete_clusters()</a>.</p>

<p>Referenced by <a class="el" href="start_8php_source.html#l00309">init_clustering()</a>.</p>

</div>
</div>
<a class="anchor" id="a93c2285ae79637e22148d06aa2309ff5"></a><!-- doxytag: member="start.php::write_arff" ref="a93c2285ae79637e22148d06aa2309ff5" args="($relation, $attributes, $data)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">write_arff </td>
          <td>(</td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>relation</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>attributes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Formatting a dataset and write it in an ARFF file. </p>
<p>If the file not exists it will be create. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">$relation</td><td>Dataset relation. </td></tr>
    <tr><td class="paramname">$attributes</td><td>List of dataset attributes. </td></tr>
    <tr><td class="paramname">$data</td><td>List of dataset data. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="start_8php_source.html#l00193">193</a> of file <a class="el" href="start_8php_source.html">start.php</a>.</p>

<p>Referenced by <a class="el" href="start_8php_source.html#l00145">generate_dataset()</a>.</p>

</div>
</div>
<a class="anchor" id="a38a02770385e327c214db25b2576e942"></a><!-- doxytag: member="start.php::write_log" ref="a38a02770385e327c214db25b2576e942" args="($text)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">write_log </td>
          <td>(</td>
          <td class="paramtype">$&#160;</td>
          <td class="paramname"><em>text</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Write a row in the log file. </p>
<p>If the log file not exists it will be create. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">$text</td><td>The sentence to be logged. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="start_8php_source.html#l00009">9</a> of file <a class="el" href="start_8php_source.html">start.php</a>.</p>

<p>Referenced by <a class="el" href="start_8php_source.html#l00094">get_dictionary()</a>, <a class="el" href="start_8php_source.html#l00223">get_clusters()</a>, <a class="el" href="start_8php_source.html#l00309">init_clustering()</a>, and <a class="el" href="start_8php_source.html#l00351">clustering()</a>.</p>

</div>
</div>
</div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="start_8php.html">start.php</a>      </li>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


    <li class="footer">Generated on Mon Feb 13 2012 21:32:27 for MTCDElggPlugin by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5 </li>
   </ul>
 </div>


</body>
</html>
